<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
	</head>
	<style>
		.nav{ height: 30px; background: #009933; display: -webkit-flex; text-align: center;}
		.nav li{ flex: 1;}
		.pic li{ display: -webkit-flex;}
		.pic li img{ width: 140px;}
		.pic li p{ flex: 1;}
		.middle{ width: 20px; height: 20px; background: #000000; justify-content: center; align-items: center; display: -webkit-flex;} 
/* entire container, keeps perspective */
.flip-container {
	perspective: 1000;
	transform-style: preserve-3d;
}
	.flip-container:hover .back {
		transform: rotateY(0deg);
	}
	.flip-container:hover .front {
	    transform: rotateY(180deg);
	}

.flip-container, .front, .back {
	width: 320px;
	height: 200px;
}

.flipper {
	transition: 0.6s;
	transform-style: preserve-3d;
	position: relative;
}

.front, .back {
	backface-visibility: hidden;
	transition: 0.6s;
	transform-style: preserve-3d;
	position: absolute;
	top: 0;
	left: 0;
}

.front {
	z-index: 2;
	transform: rotateY(0deg);
	background:yellow;
}
.back {
	transform: rotateY(-180deg);
	background:red;
}


	</style>
	<body>
		<nav class="nav">
			<li>1</li>
			<li>1</li>
			<li>1</li>
		</nav>
		<ul class="pic">
			<li>
				<img src="img/2.jpg" width="140" height="50"/>
				<p>1dddddddddddddddddddddddddddddddd</p>
			</li>
		</ul>
		<div class="middle"></div>
		
<div class="flip-container" ontouchstart="this.classList.toggle('hover');">
	<div class="flipper">
		<div class="front">
			<p>
				前面内容，鼠标移到这，试试
			</p>
		</div>
		<div class="back">
			<table style="width:100%">
				<tr>
					<td>用户名</td>
					<td><input type="text"/></td>
				</tr>
				<tr>
					<td>密码</td>
					<td><input type="text"/></td>
				</tr>
			</table>
		</div>
	</div>
</div>
	</body>
</html>
